import config from "@/config"
import http from "@/utils/request"
export default {



	GetYZ: {
		url: `${config.API_URL}/SealMaintenance/GetYZ`,
		name: "GetYZ",
		get: async function(bm){
			return await http.get(this.url+`/${bm}`);
		}
	},

	Getry: {
		url: `${config.API_URL}/SealMaintenance/Getry`,
		name: "Getry",
		get: async function(){
			return await http.get(this.url);
		}
	},

	Getshouq: {
		url: `${config.API_URL}/SealMaintenance/Getshouq`,
		name: "Getshouq",
		get: async function(bm,yz){
			return await http.get(this.url+`/${bm}`+`/${yz}`);
		}
	},

	Addwu: {
		url: `${config.API_URL}/SealMaintenance/Addwu`,
		name: "Addwu",
		post: async function(id,yz){
			return await http.post(this.url+`/${id}`+`/${yz}`);
		}
	},

	SaveEditing: {
		url: `${config.API_URL}/SealMaintenance/SaveEditing`,
		name: "更新用途",
		headers: {
			'Content-Type': 'application/json'
		},
		post: async function(row){
			return await http.post(this.url,row);
		},
	},
	fzyt: {
		url: `${config.API_URL}/SealMaintenance/fzyt`,
		name: "赋值用途",
		headers: {
			'Content-Type': 'application/json'
		},
		post: async function(data){
			return await http.post(this.url,data);
		},
	},
	xzfzyt: {
		url: `${config.API_URL}/SealMaintenance/xzfzyt`,
		name: "新增赋值用途",
		headers: {
			'Content-Type': 'application/json'
		},
		post: async function(data){
			return await http.post(this.url,data);
		},
	},
	xzyt: {
		url: `${config.API_URL}/SealMaintenance/xzyt`,
		name: "新增用途",
		headers: {
			'Content-Type': 'application/json'
		},
		post: async function(data){
			return await http.post(this.url,data);
		},
	},
	DelEditing: {
		url: `${config.API_URL}/SealMaintenance/DelEditing`,
		name: "删除授权信息",
		headers: {
			'Content-Type': 'application/json'
		},
		delete: async function(id){
			return await http.delete(this.url+`/${id}`);
		},
	},
}
